package com.kitty.game.i18n;

import lombok.Data;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;


@Data
@Table("p_i18nid")
public class P_I18nId {
    @Id(auto = false)
    private int id;
    @Column
    @Comment("模块")
    private String model;
    @Column
    @Comment("内容")
    private String content;

    public void setId(int id) {
        this.id = id;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.kitty.game.i18n.P_I18nId))
            return false;
        com.kitty.game.i18n.P_I18nId other = (com.kitty.game.i18n.P_I18nId)o;
        if (!other.canEqual(this))
            return false;
        if (getId() != other.getId())
            return false;
        Object this$model = getModel(), other$model = other.getModel();
        if ((this$model == null) ? (other$model != null) : !this$model.equals(other$model))
            return false;
        Object this$content = getContent(), other$content = other.getContent();
        return !((this$content == null) ? (other$content != null) : !this$content.equals(other$content));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.kitty.game.i18n.P_I18nId;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        result = result * 59 + getId();
        Object $model = getModel();
        result = result * 59 + (($model == null) ? 43 : $model.hashCode());
        Object $content = getContent();
        return result * 59 + (($content == null) ? 43 : $content.hashCode());
    }

    public String toString() {
        return "P_I18nId(id=" + getId() + ", model=" + getModel() + ", content=" + getContent() + ")";
    }

    public int getId() {
        return this.id;
    }

    public String getModel() {
        return this.model;
    }

    public String getContent() {
        return this.content;
    }

}
